<?php
require 'MatchBracket.php';
$matchBracket = new MatchBracket();
$str = "[()[{[]}]{}]({([]([()][]))})";
var_dump($matchBracket->isValid($str)); //输出true

$str = "[()[{[]}]{}]({([]([()][}]))})";
var_dump($matchBracket->isValid($str)); //输出false